package org.al.poc.webserver.functional;

import org.al.poc.webserver.gui.WebServerGUIView;

public class LogManager {
	
	private static WebServerGUIView view;
	private static long nbConn = 0;
	private static long nbOrder = 0;
	
	
	
	
	public static WebServerGUIView getView() {
		return view;
	}

	public static void setView(WebServerGUIView view) {
		LogManager.view = view;
	}

	

	public static synchronized void logConnection() {
		view.nbConnLabel.setText("" + (++nbConn));
	}

	
	public static synchronized void logOrder() {
		view.nbOrderLabel.setText("" + (++nbOrder));
	}
}
